/**
 * Created by baowei on 2018/10/17.
 */
import Request from "../../../../utils/request.js";
import Config from "../../../../utils/config2"
export default class {
  // 获取预约列表
  static addAddress(params) {
    return Request({
      url: `${Config.coreHost}app/address/create`,
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取预约列表
  static updateAddress(params) {
    return Request({
      url: `${Config.coreHost}app/address/update`,
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
 
  static getUserInfo(params) {
    return Request({
      url: "app/user/queryUserInfo",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 小游戏中奖选择地址
  static gameAddressServ(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivityUserPrize/address`,
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
}
